const themeModel = require('./themeModel');
const observer = require('../observer');

const getSkinSettings = (Data) => {
  // 发送通知，变更色值
  observer.postNotice('kNoticeVi', Data)

  // 将色值存储到model对象中，便于后期使用
  const { themeBaseColor, subColor } = Data
  themeModel.save(themeBaseColor, subColor)
}

module.exports = {
  getSkinSettings,
}